package org.zht.dormpro.auth.service;

import org.zht.dormpro.auth.bean.PageBean;
import org.zht.dormpro.pub.constant.Enums;
import org.zht.dormpro.auth.model.SysRole;
import org.zht.dormpro.auth.model.SysRolePermission;

import java.util.List;

public interface IRoleService {
    Integer addRole(SysRole sysRole);

    boolean addRolePermission(List<String> strings,Integer roleId);

    boolean updateRolePermission(List<String> menuIds, Integer roleId);

    boolean deleteMenuPerRL(Integer id, Enums.MRStatus mrStatus);

    List<SysRole> getRoleByCondition(PageBean pageBean);

    boolean deleteRole(Integer id);

    boolean batchRemoveRole(List<String> roleIds);

    List<SysRolePermission> getPermissionByRoleId(Integer id, Enums.MRStatus mrStatus);

    SysRole getRoleById(Integer roleId);

    boolean updateRole(SysRole sysRole);

    List<SysRole> getAllRole(int all);
}
